<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> / <a href="{url('nav/index')}">菜单管理</a>{$path}</div>
<div class="m10">
<div class="table-head fn-clear">
    <div class="fn-l"><a href="{url('nav/index')}" class="button"> <i class="iconfont">&#xf0ca;</i> 列表</a><strong>菜单管理</strong>  </div>
    <div class="fn-r"><a href="{url('nav/edit',array('pid'=>$pid))}" class="button button-blue"> <i class="iconfont" title="管理菜单">&#xf055;</i> 添加菜单</a></div>
</div>
<div class="table-tipbox">
<div class="tipbox tipbox-wait">
    <div class="tipbox-icon"><i class="iconfont" title="警告">&#xf05a;</i></div>
    <div class="tipbox-content">
    <h3 class="tipbox-title">菜单目录层次：顶部管理菜单 -> 左侧菜单分组 -> 左侧管理菜单</h3>
    <p class="tipbox-explain"></p>
    </div>
</div>
</div>
<table class="table">
<thead><tr><th class="fn-tac w40">#</th><th class="w200">菜单名称</th><th class="fn-tal">连接地址</th><th class="w120 fn-tac">最后更新时间</th><th class="fn-tac w100">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><input fid="{$vo['id']}" name="sorter" class="w40 h20 fn-tac" type="text" value="{$vo['neworder']}" /></td>
    <td class="fn-f14"><a href="{url('nav/index',array(id=>$vo['id']))}">{htmlspecialchars_decode($vo['name'])}</a></td>
    <td class="fn-tal">{$vo['url']}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac">
    <a title="编辑" href="{url('nav/edit',array(id=>$vo['id']))}">编辑</a> / 
    <a class="del" title="删除" href="###" url="{url('nav/index',array(id=>$vo['id'],act=>del))}">删除</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog',function(){
    $("input[name='sorter']").blur(function(){
        var id = $(this).attr('fid');
        var sid = $(this).val();
        $.post('{url('nav/uporter')}',{id:id,sorter:sid})
    });
  $('.del').click(function(){$(this).del();});
})
</script>